ABC139 B - Power Socket
提出
code: python
a, b = list(map(int, input().split()))
ans = 0
unused = 0
first = True
if (b == 1):
print(0)
else:
while(unused < b):
if (first):
unused += a
first = False
else:
unused += a - 1
ans += 1
print(ans)
メモ
b == 1がコーナーケース